package com.ruoyi.system.domain.vo;

import java.math.BigDecimal;
import java.util.Objects;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * buildingVo对象
 *
 * @author hanpee
 * @date 2024-03-24
 */
public class BuildingVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键(自增) */
    private Long id;
    /** 楼宇名称 */
    @Excel(name = "楼宇名称")
    private String name;

    /** 层数 */
    @Excel(name = "层数")
    private Long piles;

    /** 高度 */
    @Excel(name = "高度")
    private Long height;

    /** 占地面积 */
    @Excel(name = "占地面积")
    private BigDecimal area;

    /** 删除标记，0为删除，1已删除 */
    private String delFlag;

    @Excel(name = "单元数")
    private Integer unitNum;

    public BuildingVo() {}

    public BuildingVo(Long id, String name, Long piles, Long height, BigDecimal area, String delFlag, Integer unitNum) {
        this.id = id;
        this.name = name;
        this.piles = piles;
        this.height = height;
        this.area = area;
        this.delFlag = delFlag;
        this.unitNum = unitNum;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPiles() {
        return piles;
    }

    public void setPiles(Long piles) {
        this.piles = piles;
    }

    public Long getHeight() {
        return height;
    }

    public void setHeight(Long height) {
        this.height = height;
    }

    public BigDecimal getArea() {
        return area;
    }

    public void setArea(BigDecimal area) {
        this.area = area;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getUnitNum() {
        return unitNum;
    }

    public void setUnitNum(Integer unitNum) {
        this.unitNum = unitNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BuildingVo that = (BuildingVo) o;
        return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(piles, that.piles) && Objects.equals(height, that.height) && Objects.equals(area, that.area) && Objects.equals(delFlag, that.delFlag) && Objects.equals(unitNum, that.unitNum);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, piles, height, area, delFlag, unitNum);
    }

    @Override
    public String toString() {
        return "BuildingVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", piles=" + piles +
                ", height=" + height +
                ", area=" + area +
                ", delFlag='" + delFlag + '\'' +
                ", unitNum=" + unitNum +
                '}';
    }
}
